Carbon


GlobalToLocal

Header: Quickdraw.h Carbon status: Supported

Converts the coordinates of a point from global coordinates to the local coordinates of the current graphics port (basic or color).

void GlobalToLocal (
    Point *pt
);
Parameter descriptions
pt

A pointer to a point expressed in global coordinates (where the upper-left corner of the main screen has coordinates [0,0]). On return, this point is converted to local coordinates.

DISCUSSION

The GlobalToLocal procedure takes a point expressed in global coordinates (where the upper-left corner of the main screen has coordinates [0,0]) and converts it into the local coordinates of the current graphics port.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)